<!DOCTYPE html>
<html>

<head>
	<meta http-equiv="Content-type" content="text/html;charset=utf-8">
	<title>Magic the Gathering Card Collection Tool</title>
  <link rel="stylesheet" type="text/css" href="./styles/default.css">
  <link rel="stylesheet" type="text/css" href="./styles/menu.css">
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js" type="text/javascript"></script>
  <script src="scripts/change_details.js" type="text/javascript"></script>
</head>

<body>
<?php
  if(isset($_GET['collectionId']) && is_numeric($_GET['collectionId']))
  {
    include_once dirname(__FILE__)."/classes/collection.class.php";
    echo '<body onload="var scroller = new CardScroller(\'card_container\', \'./php_scripts/getCards.php\', {id:'.$_GET['collectionId'].', type: \'collection\'}); scroller.setShowTooltip(true); scroller.setShowFooter(true); scroller.initialize_cards(0);">';
  }
  else
  {
    echo "<body>";
  }
  include dirname(__FILE__)."/includes/header.inc.php";
  include dirname(__FILE__)."/includes/menu.inc.php";

  if(isset($_GET['collectionId']) && is_numeric($_GET['collectionId']))
  {
    include dirname(__FILE__)."/includes/collections/collectionId.inc.php";
  }
  else
  {
    include dirname(__FILE__)."/includes/collections/default.inc.php";
  }
?>

<?php
  include dirname(__FILE__)."/includes/footer.inc.php";
?>
</body>‎

</html>
